package com.alison.base;

/**
 * @Author alison
 * @Date 2024/4/9 15:28
 * @Version 1.0
 * @Description
 */
public class Calculate {

    public static void main(String[] args) {
        // start = timestamp - (timestamp -offset+WindowSize) % WindowSize
        int num = 1547718199 - (1547718199 - 0 + 15) % 15;//= 1547718195
        System.out.println(num);

        System.out.println(( (1553503181000L - 0 + 5) % 5));
        System.out.println((1553503181000L - (1553503181000L - 0 + 5) % 5));
        System.out.println(Integer.MAX_VALUE);//2147483647
    }
}
